package com.weitu.permission.post.mapper;

import com.weitu.permission.post.entity.Post;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017/6/6
 */
public interface PostMapper {

    List<Post> findByParam(Map paramMap);

    Integer findByParamCount(Map paramMap);

    Post findById(@Param("id") String id);

    Post findByCode(@Param("code") String code);

    List<Map> findByDeptId(@Param("deptId") String deptId);

    Integer add(Map paramMap);

    Integer updateById(Map paramMap);
}
